package com.my.user.dao;

import com.my.entity.User;

import java.util.ArrayList;
import java.util.List;

public interface IUserDao {
    public User queryUserByName(String name);

    public boolean isExist(String name);

    public boolean addUser(User user);

    public boolean deleteUserByName(String name);

    public boolean updateUserByName(User user);

    public boolean pwdIsRight(User user);

    public List<User> queryAllUsers();

    public int getTotalCount();

    public List<User> queryUserByPage(int currentPage,int pageSize);
}
